package com.app.mapper;

import com.app.model.BusinessModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface AttractInvestmentMapper extends BaseMapper<BusinessModel> {
    List<BusinessModel> getListByModel(BusinessModel model);

    int getCountByModel(BusinessModel model);


    List<BusinessModel> selectCompletion(BusinessModel model);

    int selectCompletionCount(BusinessModel model);

    List<BusinessModel> selectCompletionByTime(BusinessModel model);

    int selectCompletionByTimeCount(BusinessModel model);

    Double sum(int departmentId,String year);

    List<BusinessModel> getList();

}
